package com.woniu.his.app.client.param;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class PhoneLoginParam {

    /**
     * 手机号码
     */
    @NotNull
    @Length(min=11,max=11,message = "手机号只能为11位")
    @Pattern(regexp = "^[1][1,2,3,4,5,6,7,8,9][0-9]{9}$",message = "手机号格式有误")
    private String userPhone;

    /**
     * 验证码
     */
    @NotNull
    private String code;
}
